package net.wds.ssbus.modules.dict.service.impl;

import net.wds.ssbus.common.utils.PageUtils;
import net.wds.ssbus.common.utils.Query;
import net.wds.ssbus.modules.dict.service.TbBaseDictService;
import net.wds.ssbus.modules.dict.service.TbBaseDictitemService;
import net.wds.ssbus.modules.dict.dao.TbBaseDictDao;
import net.wds.ssbus.modules.dict.entity.TbBaseDictEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

@Service("tbBaseDictService")
public class TbBaseDictServiceImpl extends ServiceImpl<TbBaseDictDao, TbBaseDictEntity> implements TbBaseDictService {

    @Autowired
    TbBaseDictitemService tbBaseDictitemService;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TbBaseDictEntity> page = this.page(
                new Query<TbBaseDictEntity>().getPage(params),
                new QueryWrapper<TbBaseDictEntity>()
        );

        return new PageUtils(page);
    }
}